Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify certificate verifier usage #1319

Merged
merged 3 commits into from
Oct 27, 2023

Conversation

Alenar
Copy link
Collaborator

@Alenar Alenar commented Oct 26, 2023

Content

This PR simplify the usage of the CertificateVerifier by moving the CertificateRetriever from its methods parameters to its the implementation.

The goal is to allow to design a simple certificate verification api in the client.

Pre-submit checklist

  • Branch
    • Tests are provided (if possible)
    • Crates versions are updated (if relevant)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
  • PR
    • No clippy warnings in the CI
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested

Issue(s)

Relates to #1311

…eters

* Instead it will be provided in to the trait implementation
  constructor.
  This greatly simplify the usage of the verifier since now the caller
  won't have to provide a certificate retriever to call the verifier
  methods to verify a certificate or a certificates chain.

* Add a verify method to `ProtocolGenesisVerificationKey` this will
  eventually allow to remove the `ProtocolGenesisVerifier` as it was
  its only utility and it use a `ProtocolGenesisVerificationKey`
  internaly.
@github-actions
Copy link

github-actions bot commented Oct 26, 2023

Test Results

    3 files  ±0    17 suites  ±0   5m 23s ⏱️ - 1m 26s
714 tests +1  714 ✔️ +10  0 💤 ±0  0  - 9 
788 runs  +1  788 ✔️ +10  0 💤 ±0  0  - 9 

Results for commit 13acfdd. ± Comparison against base commit 8df0952.

♻️ This comment has been updated with latest results.

@Alenar Alenar temporarily deployed to testing-preview October 26, 2023 10:20 — with GitHub Actions Inactive
Copy link
Member

@jpraynaud jpraynaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Alenar Alenar temporarily deployed to testing-preview October 27, 2023 07:35 — with GitHub Actions Inactive
@Alenar Alenar merged commit c5b76df into main Oct 27, 2023
29 checks passed
@Alenar Alenar deleted the djo/1311/simplify_certificate_verifier_usage branch October 27, 2023 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants